You are here: Statements and Functions > Graphic
Syntax samples
GRAPHIC <expression>
GRAPHIC 2
GRAPHIC Var1
Changes the entity’s or resource’s current graphic. Entities and resources are assigned graphics from the graphics library in the Entity or Resource editor. Use the GRAPHIC to show the result of a process. For example, when a customer sits down, the graphic could change from a standing person to a sitting person.
When used in node entry, node exit, and resource-downtime logic, GRAPHIC changes a resource’s graphic. When used in location processing logic, move logic, and arrival logic, GRAPHIC changes an entity’s graphic.
Components
<expression>
The number of the entity’s or resource’s new graphic.
Example
In the example below, EntA arrives at Loc1 for a two step operation. Upon arrival, the graphic icon of the entity changes to Graphic 2. After the first two minute processing time the icon changes to Graphic 3. Finally, the icon changes to Graphic 4 after the second two minute processing time. (The difference between the two graphics may only be color, but the two could be completely different.)
Process Table
Entity |
Location |
Operation (min) |
---|---|---|
EntA |
Loc1 |
GRAPHIC 2 WAIT 15 min GRAPHIC 3 WAIT 25 min GRAPHIC 4 |
Routing Table
Blk |
Output |
Destination |
Rule |
Move Logic |
---|---|---|---|---|
1 |
EntA |
Loc2 |
FIRST 1 |
MOVE FOR 5 |